import http from '@/utils/http.ts'

export interface IToDos {
  title: string
  content: string
  priority: number
  creatorId: string
}

export const toDosCreateReq = (obj: IToDos) => {
  return http({
    url: '/admin/todo/create',
    method: 'POST',
    data: obj,
  })
}
